package com.blacktry.config.schedule;

import com.blacktry.service.JobService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


/**
 * @calssName JobA
 * @Description 每写一个定时任务需要在数据库中schedule_job中配置一条数据,
 * game-admin项目初始化时会加载数据库中的已启动的定时任务
 * @Author xxx
 */
@Component
public class JobA implements Job {

    private static final Logger logger = LoggerFactory.getLogger(JobA.class);
    private JobService jobService;

    @Override
    public void execute(JobExecutionContext context) {
        System.out.println("=================>任务测试 ");
        // 这里写需要执行的业务逻辑
    }
}